package com.aspose.cells;

public class ImageActiveXControl extends ActiveXControl {
   ImageActiveXControl(Shape shape) {
      super(shape);
      this.e = new zaa();
      this.e.a = 27;
      this.e.f = 0;
      this.e.d = 1;
      this.e.e = -2147483642;
      this.e.c = -2147483633;
      this.e.p = 2;
   }

   public int getType() {
      return 8;
   }

   int a(int var1) {
      switch(var1) {
      case 1:
         return 32;
      case 2:
         return 8;
      case 3:
      case 12:
      default:
         return 0;
      case 4:
         return 16;
      case 5:
         return 64;
      case 6:
         return 128;
      case 7:
         return 256;
      case 8:
         return 512;
      case 9:
         return 1024;
      case 10:
         return 2048;
      case 11:
         return 4096;
      case 13:
         return 4;
      case 14:
         return 8192;
      case 15:
         return 16384;
      }
   }

   public boolean isAutoSize() {
      return this.c(13);
   }

   public void setAutoSize(boolean value) {
      this.b(13);
   }

   public int getBorderOleColor() {
      return this.e.e;
   }

   public void setBorderOleColor(int value) {
      this.e.e = value;
      this.b(2);
   }

   public int getBorderStyle() {
      return this.e.d & 255;
   }

   public void setBorderStyle(int value) {
      this.e.d = 1;
      this.b(1);
   }

   public int getPictureSizeMode() {
      return this.e.o & 255;
   }

   public void setPictureSizeMode(int value) {
      this.e.o = (byte)value;
      this.b(6);
   }

   public int getSpecialEffect() {
      return this.e.f & 255;
   }

   public void setSpecialEffect(int value) {
      this.e.f = (byte)value;
      this.b(7);
   }

   public byte[] getPicture() {
      return this.e.j;
   }

   public void setPicture(byte[] value) {
      this.e.j = value;
      this.b(9);
   }

   public int getPictureAlignment() {
      return this.e.p & 255;
   }

   public void setPictureAlignment(int value) {
      this.e.p = (byte)value;
      this.b(10);
   }

   public boolean isTiled() {
      return this.c(11);
   }

   public void setTiled(boolean value) {
      this.b(11);
   }
}
